package com.csw.data.utils;

import java.util.List;

/**
 * @Author ChenSW
 * @Date 2016/12/24 10:42
 */
public class CollectionUtils {

    /**
     * 判断集合是否为空
     *
     * @param list 集合
     * @return
     */
    public static boolean isEmpty(List<?> list) {
        return list == null || list.isEmpty();
    }

    /**
     * 判断数组是否为空
     *
     * @param objects 数组
     * @return
     */
    public static boolean isEmpty(Object[] objects) {
        return objects == null || objects.length == 0;
    }
}
